﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/Admin_Master.master" AutoEventWireup="true" CodeFile="user.aspx.cs" Inherits="admin_Order" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    <ul id="top-navigation">
        
        <li class="active"><span><span><a href="user.aspx">Users</a></span></span></li>
        <li><span><span><a href="product.aspx">Products</a></span></span></li>
        <li><span><span><a href="category.aspx">Category</a></span></span></li>
        <li><span><span><a href="order.aspx">Orders</a></span></span></li>
        
    </ul>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <br />
    <div class="select-bar">
        <label>
            <asp:TextBox ID="txtSearchUser" runat="server"></asp:TextBox>
        </label>
        <label>
            <asp:Button ID="Button1" runat="server" Text="Search" OnClick="Button1_Click" />
        </label>
    </div>
    <div class="table">

        <asp:GridView ID="gvUser" runat="server" AutoGenerateColumns="False">
            <Columns>

                <asp:TemplateField HeaderText="Tên người dùng" SortExpression="UserName">
                    <ItemTemplate>
                        <asp:Label ID="lblUserId" runat="server" Text='<%# Bind("UserId") %>' Visible="False"></asp:Label>
                        <asp:Label ID="lblUserName" runat="server" Text='<%# Bind("UserName") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" CssClass="StyleProduct" />
                    <ItemStyle HorizontalAlign="Center" CssClass="StyleProduct" />
                </asp:TemplateField>

                <asp:TemplateField HeaderText="Account" SortExpression="Account">
                    <ItemTemplate>
                        <asp:Label ID="lblUserName" runat="server" Text='<%# Bind("Account") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" CssClass="StyleCate" />
                    <ItemStyle HorizontalAlign="Center" CssClass="StyleCate" />
                </asp:TemplateField>

                <asp:TemplateField HeaderText="Email" SortExpression="Email">
                    <ItemTemplate>
                        <asp:Label ID="lblUserName" runat="server" Text='<%# Bind("Email") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" CssClass="StyleProduct" />
                    <ItemStyle HorizontalAlign="Center" CssClass="StyleProduct" />
                </asp:TemplateField>

                <asp:TemplateField HeaderText="Admin? " SortExpression="IsAdmin">
                    <ItemTemplate>
                        <asp:CheckBox ID="chbxIsAdmin" runat="server" Checked='<%# Bind("IsAdmin") %>' Enabled="false" />
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" CssClass="StyleShort" />
                    <ItemStyle HorizontalAlign="Center" CssClass="StyleShort" />
                </asp:TemplateField>
                
                

            </Columns>
             <FooterStyle BackColor="Tan" />
            <HeaderStyle BackColor="#9097A9" Font-Bold="True" Width="100px" ForeColor="White" Height="30" />
            <PagerStyle BackColor="#9097A9" ForeColor="White" HorizontalAlign="Center" Font-Size="13" />
            <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="White" />
            <RowStyle BackColor="#D8D8D8" ForeColor="black" />
            <SortedAscendingCellStyle BackColor="#FAFAE7" />
            <SortedAscendingHeaderStyle BackColor="#DAC09E" />
            <SortedDescendingCellStyle BackColor="#E1DB9C" />
            <SortedDescendingHeaderStyle BackColor="#C2A47B" />
        </asp:GridView>
        <br />

    </div>
</asp:Content>


